Skip to content

Add macros to remove old runtime#51967

Closed
RSNara wants to merge 1 commit into
react:mainfrom
RSNara:export-D72582307
Closed

Add macros to remove old runtime#51967
RSNara wants to merge 1 commit into
react:mainfrom
RSNara:export-D72582307

Conversation

@RSNara

@RSNara RSNara commented Jun 11, 2025

Copy link
Copy Markdown
Contributor

Summary:
This diff adds macros around the legacy architecture core.

To compile out the legacy architecture, simply set: -DRCT_FIT_RM_OLD_RUNTIME=1.

  • RCTBridge: interface kept around
  • RCTRootView: interface kept around
  • RCTSurface: interface kept around
  • RCTModuleData: interface kept around (used by RCTProfile)
  • RCTProfile: Kept around (doesn't work in bridgeless...)
  • RCTCxxBridge: interface kept around
  • c++ bridge: removed
  • legacy components in core: kept around (for now)

Details

I added comments to each of the #else, and #endif directives. That way, we can more easily codemod this code in the future.

Changelog: [Internal]

Reviewed By: mdvacca

Differential Revision: D72582307

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner labels Jun 11, 2025
@facebook-github-bot

Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D72582307

Summary:
Pull Request resolved: react#51967

This diff adds macros around the legacy architecture core.

To compile out the legacy architecture, simply set: -DRCT_FIT_RM_OLD_RUNTIME=1.

* RCTBridge: interface kept around
* RCTRootView: interface kept around
* RCTSurface: interface kept around
* RCTModuleData: interface kept around (used by RCTProfile)
* RCTProfile: Kept around (doesn't work in bridgeless...)
* RCTCxxBridge: interface kept around
* c++ bridge: removed
* legacy components in core: kept around (for now)

## Details
I added comments to each of the #else, and #endif directives. That way, we can more easily codemod this code in the future.

Changelog: [Internal]

Reviewed By: mdvacca

Differential Revision: D72582307
@facebook-github-bot

Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D72582307

@RSNara RSNara force-pushed the export-D72582307 branch from 5dcf8bf to 2aea444 Compare June 11, 2025 23:52
@react-native-bot

Copy link
Copy Markdown
Collaborator

This PR is stale because it has been open for 180 days with no activity. It will be closed in 7 days unless you comment on it or remove the "Stale" label.

@react-native-bot react-native-bot added Stale There has been a lack of activity on this issue and it may be closed soon. and removed Stale There has been a lack of activity on this issue and it may be closed soon. labels Dec 9, 2025
@react-native-bot

Copy link
Copy Markdown
Collaborator

Closing as this has been merged in fb1a4d7

@react-native-bot react-native-bot added the Merged This PR has been merged. label Jun 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants